<!--
**********************************************************
* @Author: 张小平
* @Date:   2024-05-01
* @Email:  qqshuqian@163.com
* @Last modified: 最后修改日期
* @Description: 文件描述
**********************************************************
-->
<template>

    <avue-tabs :option="option" @change="handleChange"></avue-tabs>

</template>

<script>
    import router from '@/framework-core/router/'
    export default {
        name: 'JrTab',
        props: ['column'],
        inject: ['getViewFormData'],
        computed: {
            option(){
                return column.items;
            }
        },
        data () {
            return {
                type: {},
            }
        },
        created () {
            this.type = this.option.column[0];
        },
        methods: {
            handleChange (column) {
                this.type = column;
                if(!column.linkProp){
                    return
                }
                if(column.linkType==1){
                     //
                }else {
                    if (column.linkProp.indexOf("http")) {
                        this.$router.push(column.linkProp);
                    } else {
                        window.location.href = column.linkProp;
                    }
                }
            }
        }
    }
</script>


<style lang="scss" scoped>
    .content {
        background: #f7f7f7;
        padding: 5px 10px;
        > ul {
            padding: 0 !important;
            li {
                list-style: none;
                span {
                    color: #409eff;
                }
            }
        }
    }
</style>
